<template>
  <div class="service-page">
    <v-title :title="$route.meta.title" />
    <arrow v-if="!hideArrow" />
    <div class="main">
      <router-view />
    </div>
  </div>
</template>

<script>
import Title from '@/components/Title'
import Arrow from '@/components/Arrow'
export default {
  name: 'ServicePage',
  components: {
    'v-title': Title,
    Arrow
  },
  computed: {
    // show or hide arrow component
    hideArrow() {
      return (this.$route.meta && this.$route.meta.hideArrow) || false
    }
  }
}
</script>

<style scoped lang="stylus">
.service-page
  background $background_color
  padding-top 45px
  padding-bottom 20px
  .main
    margin 10px
</style>
